package io.renren.modules.app.dao;
import io.renren.modules.app.entity.TZnmhAppVersionRoleMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface TZnmhAppVersionRoleMenuDao{
	/**
	 * 获得TZnmhAppVersionRoleMenu数据的总行数
	 * @return
	 */
    long getTZnmhAppVersionRoleMenuRowCount();
	/**
	 * 获得TZnmhAppVersionRoleMenu数据集合
	 * @return
	 */
    List<TZnmhAppVersionRoleMenu> selectTZnmhAppVersionRoleMenu();
	/**
	 * 获得一个TZnmhAppVersionRoleMenu对象,以参数TZnmhAppVersionRoleMenu对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    TZnmhAppVersionRoleMenu selectTZnmhAppVersionRoleMenuByObj(TZnmhAppVersionRoleMenu obj);
	/**
	 * 通过TZnmhAppVersionRoleMenu的id获得TZnmhAppVersionRoleMenu对象
	 * @param id
	 * @return
	 */
    TZnmhAppVersionRoleMenu selectTZnmhAppVersionRoleMenuById(String id);
	/**
	 * 插入TZnmhAppVersionRoleMenu到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTZnmhAppVersionRoleMenu(TZnmhAppVersionRoleMenu value);
	/**
	 * 插入TZnmhAppVersionRoleMenu中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyTZnmhAppVersionRoleMenu(TZnmhAppVersionRoleMenu value);
	/**
	 * 批量插入TZnmhAppVersionRoleMenu到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTZnmhAppVersionRoleMenuByBatch(List<TZnmhAppVersionRoleMenu> value);
	/**
	 * 通过TZnmhAppVersionRoleMenu的id删除TZnmhAppVersionRoleMenu
	 * @param id
	 * @return
	 */
    int deleteTZnmhAppVersionRoleMenuById(String id);
	/**
	 * 通过TZnmhAppVersionRoleMenu的id更新TZnmhAppVersionRoleMenu中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateTZnmhAppVersionRoleMenuById(TZnmhAppVersionRoleMenu enti);
	/**
	 * 通过TZnmhAppVersionRoleMenu的id更新TZnmhAppVersionRoleMenu中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyTZnmhAppVersionRoleMenuById(TZnmhAppVersionRoleMenu enti);
}